package website.negocio;

import java.util.Collection;

import website.modelo.*;
import website.dao.*;
import website.excepcion.DAOExcepcion;



public class GestionResponsables {

	
		public Collection<Responsable> listarRes() throws DAOExcepcion {
		ResponsableDAO dao = new ResponsableDAO();

		return dao.listarRes();
	}

		public void eliminar(String idOferta) throws DAOExcepcion {
			ResponsableDAO dao = new ResponsableDAO();
			dao.eliminar(idOferta);
		}

				
		
		public Responsable insertar(String nombre,String apePaterno,String apeMaterno,String sexo,String tipDoc,String numDoc,String email,String passWord)
				throws DAOExcepcion {
			ResponsableDAO dao = new ResponsableDAO();
			Responsable vo = new Responsable();

			
			
			vo.setNombresResponsable(nombre);
			vo.setApePaternoResponsable(apePaterno);
			vo.setApeMaternoResponsable(apeMaterno);
			vo.setSexoResponsable(sexo);
			vo.setTipoDocResponsable(tipDoc);
			vo.setNumDocResponsable(numDoc);
			vo.setEmailResponsable(email);
			vo.setPassword(passWord);
		
			
			return dao.insertar(vo);
		}
	
	
}
